﻿using Microsoft.AspNetCore.Mvc;

namespace WebAPI_CICD.Controllers
{
    [ApiController]
    [Route("[controller]/[action]")]
    public class CICDController : ControllerBase
    {
        private readonly ILogger<WeatherForecastController> _logger;

        public CICDController(ILogger<WeatherForecastController> logger)
        {
            _logger = logger;
        }

        [HttpGet(Name = "GetCICD")]
        public string GetCICD()
        {
            return $"利用jenkins CI/CD部署成功:{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}";
        }
    }
}